<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Monkey PHP Framework</title>
<link type="text/css" href="statics/css/base.css" rel="stylesheet" />
<script type="text/javascript" src="statics/js/jquery.min.js"></script>
<!--prettify-->
<link type="text/css" href="statics/css/prettify.css" rel="stylesheet" />
<script type="text/javascript" src="statics/js/prettify.js"></script>
<script type="text/javascript" src="statics/js/html5.js"></script>
<script type="text/javascript" src="statics/js/monkey.js"></script>
</head>

<body>
<!--page_wrap:start-->
<div class="page_wrap">

<p>
<h2>2.18  数据层操作管理器\Monkey\DatabaseManager</h2><br/>

<b>公开方法：</b><br />
<table class="table table_bordered table_striped">
	<thead>
		<tr>
			<th>方法名</th>
			<th>参数</th>
			<th>说明</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<th>__construct</th>
			<td>string|integer $defaultKey 默认使用的连接池键名</td>
			<td>构造方法。</td>
		</tr>
		<tr>
			<th>&linkManager</th>
			<td>无</td>
			<td>获取连接管理器对象。返回\Monkey\Database\linkManager单例对象</td>
		</tr>
        <tr>
            <th>activeLink</th>
            <td>string|int $key 连接名；</td>
            <td>设置活动连接，即连接切换。切换后，所有由数据层管理器提供的工具都自动切换到新的连接上。返回boolean。</td>
        </tr>
        <tr>
            <th>getActiveLink</th>
            <td>无</td>
            <td>获取活动连接参数。返回array</td>
        </tr>
        <tr>
            <th>getKeyOfActiveLink</th>
            <td>无</td>
            <td>获取活动连接键名。返回integer|string</td>
        </tr>
        <tr>
            <th>newModel</th>
            <td>string $table 表名</td>
            <td>生成一个新的模型对象。返回\Monkey\Database\Model对象</td>
        </tr>
		<tr>
			<th>&driver</th>
			<td>无</td>
			<td>获取当前数据驱动对象。返回\Monkey\Database\Driver\_Interface对象</td>
		</tr>
		<tr>
			<th>&insert</th>
			<td>无</td>
			<td>获取Insert操作助手。返回\Monkey\Database\SqlHelper\Insert对象</td>
		</tr>
		<tr>
			<th>&update</th>
			<td>无</td>
			<td>获取Update操作助手。返回\Monkey\Database\SqlHelper\Update对象</td>
		</tr>
		<tr>
			<th>&select</th>
			<td>无</td>
			<td>获取Select操作助手。返回\Monkey\Database\SqlHelper\Select对象</td>
		</tr>
		<tr>
			<th>&delete</th>
			<td>无</td>
			<td>获取Delete操作助手。返回\Monkey\Database\SqlHelper\Delete对象</td>
		</tr>
		<tr>
			<th>&queryHelper</th>
			<td>无</td>
			<td>获取sql生成器。返回\Monkey\Database\QueryHelper\_Interface对象</td>
		</tr>
	</tbody>
</table>
</p>


</div>
<!--page_wrap:end-->
</body>
</html>